package com.schoolET.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author le
 **/
@Data
@ToString
@ApiModel(value = "GoodsDTO对象", description = "商品信息")
public class GoodsDTO implements Serializable {

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("图片")
    private String picture;

    @ApiModelProperty("主题")
    private String theme;

    @ApiModelProperty("描述")
    private String goodsDescribe;

    @ApiModelProperty("价格")
    private Long price;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("商品类型")
    private List<String> goodsTypeList;

    @ApiModelProperty("位置")
    private String position;

    @ApiModelProperty("卖家")
    private WechatInfoDTO wechatInfo;
}
